package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.ChiTietDatHangDao;
import com.tt.fashionWebSite.domain.ChiTietDatHang;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("chiTietDatHang")
public class ChiTietDatHangJpaDao extends GenericJpaDao<ChiTietDatHang, String> implements ChiTietDatHangDao {
    public ChiTietDatHangJpaDao () {
        super(ChiTietDatHang.class);
    }

    @Override
    public List<ChiTietDatHang> getOrderDetailCommon(){
        return getEntityManager().createNamedQuery(ChiTietDatHang.GET_ORDERDETAIL_ALL, ChiTietDatHang.class).getResultList();
    }

}
